package com.gouying.design.patterns.prototype;

public class DB {


    public Animal select() throws CloneNotSupportedException {
        Animal animal = new Animal();
        animal.setName("狸花猫");
        animal.setType("小猫咪");
        return (Animal)animal.clone();
    }

}
